<?php

import('@.Common.AdminAccount');
class IndexAction extends Action{
    protected function _initialize(){
        $this->assign('self', AdminAccount::get()->getInfo());
    }
    public function index(){
        if (!AdminAccount::get()->getAdmin()){
            $this->redirect('account/login');
        }
        $this->display();
    }
}
?>